function uploadGallery( divID ) 
{
	var tbframe_interval = setInterval(function() {jQuery('#TB_iframeContent').contents().find('.savesend .button').val('Use This Image');}, 2000);
	formfield = jQuery('#'+ divID).attr('name');
	tb_show('', 'media-upload.php?tab=library&TB_iframe=true');
	window.send_to_editor = function(html) {
		//clear interval for "Use this Button" so button text resets
		clearInterval(tbframe_interval);
		url = $(html).html(html).find('img').attr('src'); //jQuery(html).attr('href');
		jQuery('#'+ divID).val(url);
		tb_remove();
		formfield = '';
	};
	return false;
}